package com.smart.controller.sys;

import com.smart.util.Messages;
import javax.annotation.Resource;
import io.swagger.annotations.Api;
import com.smart.entity.SysOperationLog;
import io.swagger.annotations.ApiOperation;
import com.smart.controller.BaseController;
import com.smart.service.SysOperationLogService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lgb
 * @date 2020年6月10日 下午7:30:21
 * Copyright (C) 深圳工勘科技
 * @说明: 日志管理
 **/
@RestController("sysOperationController")
@RequestMapping("/sys/operation_log")
@Api(value="sysOperation",tags="日志管理")
public class SysOperationController extends BaseController{

	@Resource
	private SysOperationLogService logService;
	/**
	 * @param pageable
	 * @return 分页查询数据
	 **/
	@GetMapping(value="/page")
	@ApiOperation(value="Sys=>获取日志分页数据",notes="Sys获取日志分页数据")
	public Messages<IPage<SysOperationLog>> page(
		Integer operatorType,String operName,String createTime_start,
		String createTime_end, Integer pageNum,Integer pageSize){
		
		return Messages.success(logService.findPage(operatorType,operName,
				createTime_start,createTime_end,pageNum,pageSize));
	}
	
	
	
	
}